﻿/*
 ================================================

    -gray
    #ebebeb
    nav bg
    $c-gray-light2

    #f4f4f4
    box-bg
    $c-gray-light

    #cccccc
    table input bg
    $c-gray

    #999999
   title en
     $c-gray-dark2

    #666666
    date-box
     txt color
    $c-gray-dark

    -danger
    #b90c38
     txt hover
     $c-danger

    -white
    #ffffff
    main bg
    $c-white-light

    -primary
    #3557ad
    theme bg
    $c-primary

    -black
    #333333
    mian font
        $c-black

 ================================================
*/
        
//color
//main color
$c-mainC:           $text-color !default;
//theme color
$c-themeC:          $c-brown !default;

//hover color
$c-mainHover:    $c-mainC !default;
$c-themeHover:   $c-warning !default;

//main background color
$c-mainBg:          $body-bg;
//theme background color
$c-themeBg:         $c-brown;

.mouse-point {
    cursor: pointer;
    text-decoration: none;
    color: #333;

    &:hover {
        text-decoration: none;
        color: $c-themeHover;
    }
}

.position-ab {
    position: absolute;
}

.f-l {
    float: left;
}

.f-r {
    float: right;
}

.display-b {
    display: block;
}

.display-i {
    display: inline;
}

.display-n {
    display: none;
}

.vertical-tp {
    vertical-align: top;
}

.vertical-md {
    vertical-align: middle;
}

.vertical-bt {
    vertical-align: bottom;
}

.custom-bar {
    display: block;
    width: 18px;
    height: 3px;
    border-radius: 1px;
    background-color: #C7D2D2;
    margin-bottom: 1px;
}

.on .custom-bar {
    background-color: #85BFCA;
}

.box-shadow {
    box-shadow: 0px 0px 5px $c-black;
}

.validation-Msg {
    color: $c-orange;
}

.custom-icon {
    font-family: 'Glyphicons Halflings';
    font-size: medium;
    font-weight: bold;
    color: #888;
    position: relative;
    top: -37px;
    left: 10px;
}

/* Borders */
@for $i from 0 through 2 {
    @each $class, $direct in ('', ''), (-t, -top), (-b, -bottom), (-l, -left), (-r, -right) {
        .bdr-w#{$i}#{$class} {
            border#{$direct}: #{$i}px solid;
        }
    }
}


//font


/*============== mixin ==============*/

@mixin bg-main-container($type, $bg, $cl) {
    .util-bgMain-#{$type} {
        background-color: $bg;
        color: $cl;

        a {
            color: $cl;

            &:hover {
                color: $c-themeHover;
            }
        }
    }
}

@include bg-main-container(bl, $c-black-dark, $c-white-light);

@each $type, $bg, $cl in (wa, $c-warning, $c-black) (gr, $c-gray, $c-white-light) (grl, $c-gray-light, $c-white-light) (grd, $c-gray-dark, $c-white-light) (wh, $c-white-light, $c-black) (vi, $c-viole, $c-white-light) (vid, $c-viole-dark, $c-white-light) (in, $c-info-light, $c-white-light) (da, $c-danger, $c-white-light)  {
    .util-bgPartial-#{$type} {
        background-color: $bg;
        color: $cl;

        a {
            color: $cl;

            &:hover {
                color: $c-themeHover;
            }
        }
    }
}

@each $type, $cl in (pr, $c-primary) (whd, $c-white-dark) {
    .util-clMain-#{$type} {
        color: $cl;

        a {
            color: $cl;

            &:hover {
                color: $c-themeHover;
            }
        }
    }
}

@each $type, $cl in (wad, $c-warning-dark) (whl, $c-white-light) (or, $c-orange) (da, $c-danger) (in, $c-info) (wa, $c-warning) (su, $c-success) (sud, $c-success-dark) {
    .util-clPartial-#{$type} {
        color: $cl;

        a {
            color: $cl;

            &:hover {
                color: $c-themeHover;
            }
        }
    }
}
.bdc_normal {
  border-color: $c-gray-2-rgba;
}

*.noBorderRight {
    border-right: none !important;
}

*.noBorderbottom {
    border-bottom: none !important;
}

*.noMarRight {
    margin-right: 0 !important;
}

*.transit {
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

.transit {
    img {
        -webkit-transition: all 0.2s linear;
        -moz-transition: all 0.2s linear;
        -ms-transition: all 0.2s linear;
        -o-transition: all 0.2s linear;
        transition: all 0.2s linear;
    }
}

img.scale:hover {
    -webkit-transform: scale(1.1, 1.1);
    -moz-transform: scale(1.1, 1.1);
    -ms-transform: scale(1.1, 1.1);
    -o-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
}

.scale:hover {
    img {
        -webkit-transform: scale(1.1, 1.1);
        -moz-transform: scale(1.1, 1.1);
        -ms-transform: scale(1.1, 1.1);
        -o-transform: scale(1.1, 1.1);
        transform: scale(1.1, 1.1);
    }
}

*.shadow {
    -webkit-box-shadow: 1px 1px 1px 1px #dddddd;
    -moz-box-shadow: 1px 1px 1px 1px #dddddd;
    box-shadow: 1px 1px 1px 1px #dddddd;
}

.cmm-translateX {
    position: absolute;
    left: 50%;
    // -ms-transform: translateX(-50%);
    // -moz-transform: translateX(-50%);
    // -webkit-transform: translateX(-50%);
    // -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

.cmm-translateY {
    position: absolute;
    top: 50%;
    // -ms-transform: translateY(-50%);
    // -moz-transform: translateY(-50%);
    // -webkit-transform: translateY(-50%);
    // -o-transform: translateY(-50%);
    transform: translateY(-50%);
}

.cmm-translateXY {
    position: absolute;
    left: 50%;
    top: 50%;
    // -ms-transform: translateY(-50%) translateX(-50%);
    // -moz-transform: translateY(-50%) translateX(-50%);
    // -webkit-transform: translateY(-50%) translateX(-50%);
    // -o-transform: translateY(-50%) translateX(-50%);
    transform: translateY(-50%) translateX(-50%);
}

.cmm-clearfix {
    &::after {
        content: '';
        clear: both;
        display: block;
    }
}

.cmm-txtOverflow {
    display:inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.enUppercase {
    text-transform: uppercase;
}
